package mysql

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	Title string  `gorm:"type:varchar(30);not null"`
	Image string  `gorm:"type:varchar(500);not null"`
	Price float64 `gorm:"type:decimal(10,2);not null"`
}

type GoodCar struct {
	gorm.Model
	GoodId int     `gorm:"type:int;not null"`
	Title  string  `gorm:"type:varchar(30);not null"`
	Price  float64 `gorm:"type:decimal(10,2);not null"`
	Num    int     `gorm:"type:int;not null"`
}
